import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/HomeView.vue'

const routes = [
  {
    name: 'home',
    path: '/home',
    component: Home
  },
  {
    path: '/:pathMatch(.*)',
    redirect: '/home'
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router
